<%@ page language="java"
	import="java.util.*,java.net.URL,java.sql.*
		,cn.wendellup.bootStrap.valueobject.entity.UserInfo"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>wendellup小站</title>
<style type="text/css">
.row1 {
	background-color: #fff8dc;
}

.row2 {
	background-color: #yellow;
}
</style>
</head>
<body>
	<%-- <%
//		List<UserInfo> userList = (List<UserInfo>)request.getAttribute("userList");
		List<UserInfo> userList = ${userList};
			for(UserInfo user : userList){
				response.getWriter().write(user.getId() + user.getNickName()+"\n");	
			}
	%> --%>
	<table>
		<thead>
			<tr>
				<td>序号</td>
				<td>id号</td>
				<td>用户名</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${userList}" var="user" varStatus="status">
				<tr class="row${status.index%2+1}">
					<td>${status.count}</td>
					<td>${user.id}</td>
					<td>${user.firstName}</td>
					<!-- getAttribute("status").getIndex() -->
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div>
		<a href="${contextPath}/music/fetch/show">去导入您的豆瓣红心音乐数据</a>
	</div>
</body>
</html>